/**
 * @description: 全局变量获取
 * @Author: huangpeng
 * @Date: 2023年05月14日 18:14
 * @Copyright:  2022-2023
 */
const getters = {
  sidebar: (state: any) => state.app.sidebar,
  visitedViews: (state: any) => state.tagsView.visitedViews,
  cachedViews: (state: any) => state.tagsView.cachedViews,
  size: (state: any) => state.app.size,
  device: (state: any) => state.app.device,
  token: (state: any) => state.user.token,
  roles: (state: any) => state.user.roles,
  permissions: (state: any) => state.user.permissions,
  topbarRouters: (state: any) => state.permission.topbarRouters,
  defaultRoutes: (state: any) => state.permission.defaultRoutes,
  sidebarRouters: (state: any) => state.permission.sidebarRouters,
  userInfo: (state: any) => state.user.userInfo,
  userId: (state: any) => state.user.userInfo.id,
  config: (state: any) => state.config,
  siteConfig: (state: any) => state.config.siteConfig,
  thirdBindStatus: (state: any) => state.user.thirdBindStatus
};
export default getters;
